package com.stars.empoly.adapter

import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.stars.empoly.R
import com.stars.empoly.databinding.ItemHomeFristBinding
import com.stars.empoly.model.DriverProfit
import com.stars.empoly.vmodel.HomeFirstVModel
import com.trailer.base.base.BAdapter

class HomeFristAdapter(var vm: HomeFirstVModel) : BAdapter<DriverProfit, BaseDataBindingHolder<ItemHomeFristBinding>>(R.layout.item_home_frist) {
    override fun convert(holder: BaseDataBindingHolder<ItemHomeFristBinding>, item: DriverProfit) {
        holder.dataBinding?.item = item
        holder.dataBinding?.vm=vm

    }
}
